﻿using System;
using System.Data.Common;

namespace DataAccess
{
    public interface IDbConnector : IDisposable
    {
        Boolean isBeginTransaction();

        DbConnection connection();

        DbTransaction transaction();

        DbProviderFactory factory();

        void openConnection();

        void closeConnection();

        void beginTransaction();
        
        void commit();

        void rollback();
    }
}
